#ifndef TCP_CONNENCT_H
#define TCP_CONNENCT_H

#include "SocketIO.h"
#include "Socket.h"
#include "InetAddress.h"

class TcpConnect
{
private:
    int _cltFd;
    SocketIO _io;

public:
    TcpConnect(int cltFd);
    TcpConnect(const TcpConnect &rhs);
    void send(const char *);
    std::string receive(int &);
    InetAddress getPeerAddress() const;
    InetAddress getLocalAddress() const;
    const std::string toString() const;
    void shutdown();
};

#endif